local obrsword_power_shield_val = Class(function(self, inst)
    self.inst = inst
    self.shield_val = 1000

    local function onpreload(inst, data)
        if data then
            if data.shield_val then
                self.shield_val = data.shield_val
            end

        end
    end

    local function onsave(inst, data)

        data.shield_val = self.shield_val

    end
    inst.OnSave = onsave
    inst.OnPreLoad = onpreload

end)
function obrsword_power_shield_val:Use(num)
    self.shield_val = self.shield_val - num
    if self.shield_val <= 0 then self.shield_val = 0 end
   
        
end
function obrsword_power_shield_val:set(num)
    self.shield_val =num
 end  
  function obrsword_power_shield_val:Get()
   return self.shield_val
 end        


return obrsword_power_shield_val
